package chen.web.blog;

import java.util.Date;

import chen.web.IdEntity;
import chen.web.user.Account;

public class Article extends IdEntity{

	private String title;
	private String content;
	private int viewCount;
	private Date created;
	private Date lastModified;
	private boolean top;
	private boolean fakeDeleted;
	private Category category;
	private Blog blog;
	private Account author;
	
	public Article(){
		super(0);
	}
	
	@Override
	public int getId(){
		return id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getViewCount() {
		return viewCount;
	}
	public void setViewCount(int viewCount) {
		this.viewCount = viewCount;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public Date getLastModified() {
		return lastModified;
	}
	public void setLastModified(Date lastModified) {
		this.lastModified = lastModified;
	}
	public boolean isTop() {
		return top;
	}
	public void setTop(boolean top) {
		this.top = top;
	}
	public boolean isFakeDeleted() {
		return fakeDeleted;
	}
	public void setFakeDeleted(boolean fakeDeleted) {
		this.fakeDeleted = fakeDeleted;
	}
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
	public Account getAuthor() {
		return author;
	}
	public void setAuthor(Account author) {
		this.author = author;
	}

	public Blog getBlog() {
		return blog;
	}

	void setBlog(Blog blog) {
		this.blog = blog;
	}
	
}
